home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 05 - 1989 / 05.03 Mar 89 / calc source / Parser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-12-09  |  929 b   |  28 lines  |  [TEXT/KAHL]

  1. /* Parse errors */
  2. #define MISMATCHED_PARENTHESIS        200
  3. #define INVALID_NUMBER                201
  4. #define INVALID_ADDRESS                202
  5. #define ADDRESS_TOO_LARGE            203
  6. #define INVALID_FUNCTION            204
  7.  
  8. /* Prototypes */
  9. void SetType( CELL_PTR, int ) ;
  10. double ParseFormula( unsigned char *, int * ) ;
  11. double ParseExpression( void ) ;
  12. double ParseFactor( void ) ;
  13. double ParseValue( void ) ;
  14. double ParseAddress( void ) ;
  15. #define IsDigit(x) (((x)<='9') && ((x)>='0'))
  16. #define IsAlpha(x) ( ( ( (x) >= 'A' ) && ( (x) <= 'Z' ) ) || ( ( (x) >= 'a' ) && ( (x) <= 'z' ) ) )
  17. int IsFunction( void ) ;
  18. int GetRow( void ) ;
  19. int GetColumn( void ) ;
  20. double CallFunction( ) ;
  21. int Lookup( unsigned char * ) ;
  22. ARG_PTR BuildArg( void ) ;
  23. double atof( void ) ;
  24. void ftoa( double, unsigned char * ) ;
  25. double GetFloat( unsigned char *, int * ) ;
  26. ARG_PTR GetArg( void ) ;
  27. void PutArg( ARG_PTR ) ;
  28. void DestroyArgs( ARG_PTR ) ;